package chat;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

public interface ConsultarSalaService extends Remote{

    public abstract List<Sala> listar() throws RemoteException;
    
    public abstract List<String> usuariosPorSala(int salaIndex) throws RemoteException;
    
    public abstract void addUsuarioConectado(int salaIndex, String login) throws RemoteException;

    public abstract void removeUsuarioConectado(int salaIndex, String login) throws RemoteException;
    
    public abstract void criarSalaReservada(String nome, int limiteUsuarios, List<String> logins) throws RemoteException;
}

